//
//  ccTableViewCell.m
//  daadawd
//
//  Created by 吕超 on 17/7/6.
//  Copyright © 2017年 lc. All rights reserved.
//

#import "ccTableViewCell.h"
#import "Masonry.h"

#define selfWidth   [UIScreen mainScreen].bounds.size.width
@implementation ccTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self){
        
        [self setLable];
        
    }
    return self;
}


- (void)setLable{
 
    
    _label = [[UILabel alloc] init];
    _label.font = [UIFont systemFontOfSize:17];
    _label.numberOfLines = 0;
    [self.contentView addSubview:self.label];
    
    [self.label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.top.mas_equalTo(10);
        make.right.mas_equalTo(-15);
        make.bottom.mas_equalTo(-10);
    }];
    
    // 分割线 便于观看
    UIView *line = [[UIView alloc]init];
    line.backgroundColor = [UIColor blackColor];
    [self.contentView addSubview:line];
    
    [line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(0);
        make.right.mas_equalTo(0);
        make.height.mas_equalTo(1);
        make.bottom.mas_equalTo(-1);
    }];
    
}


- (void)awakeFromNib {
    [super awakeFromNib];
    
    
    
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
